<extend name="Layout:layout_base" />
<block name="head_after">    
    <link href="__JQPLUGIN__superfish-1.7.6/css/superfish.min.css" rel="stylesheet" type="text/css"/>
    <link href="__THEME__Css/index.css?v=1.1" rel="stylesheet" type="text/css"/>
</block>
<block name="body_before">
    <script src="__JQPLUGIN__superfish-1.7.6/js/superfish.min.js" type="text/javascript"></script>
    <script src="__JSCOMMON__js.cookie/js.cookie.min.js" type="text/javascript"></script>
    <script src="__THEME__Plugin/MdiTabUF-1.0.js?v=1.0" type="text/javascript"></script>
    <script src="__THEME__Plugin/IFrameDialog-1.0.js" type="text/javascript"></script>
    <script src="__THEME__Plugin/jquery-marquee-1.0/jquery-marqueeLeft-1.0.min.js" type="text/javascript"></script>
    <script src="__THEME__Script/index-page-1.0.js" type="text/javascript"></script>

</block>
<block name="body_head">
    <header>
        <div class="grid-container">
            <div class="grid-20 mobile-grid-50 grid-parent"><a href="{:U('Index/index')}"><img src="__THEME__Images/logo.gif" alt="LOGO" style="width:100%; max-height:55px; border:0" /></a></div>
            <!--用户区-->            
            <div class="grid-20 grid-parent push-60 user-area">
                <ul class="sf-menu">
                    <li><a href="#">你好，<em title="{$login_data.user_name}">{$login_data.user_name}</em></a>                      
                        <ul>
                            <li><a href="{:U('User/profile_edit','addon=POrgUser')}" class="lnk-edit">个人资料</a></li>
                            <li><a href="{:U('PM/my_inbox','addon=POrgUser')}" class="lnk-view">消息<span id="pmcount" data-url="{:U('PM/read_count','addon=POrgUser')}">(0)</span></a></li>
                            <li><a href="{:C('VARCONF.LOGOUT_URL')}" onclick="return confirm('您确定刚要退出登录吗?');" class="lnk-loginout">注销</a></li>
                        </ul>
                    </li>
                    <li><a href="/" target="_blank">网站</a></li>
                    <li><a href="#">帮助</a>
                        <ul>
                            <li><a href="{:U('Index/about')}" class="lnk-view">关于</a></li>
                            <li><a href="__ROOT__/Assets/XCall/help.doc" target="_blank">使用帮助</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
            <!--/用户区-->
            <!-- 主导航菜单 -->
            <div class="grid-60 mobile-grid-100 pull-20 menu-nav">                
                <ul class="sf-menu">
                    <foreach name="menuset" item="vo">
                        <li><a href="#" onclick="return false;" class="icon-{$vo.code}">{$vo.title}</a>
                            <ul>
                                <foreach name="vo['children']" item="vo2">
                                    <li class="xsui-menu-header">{$vo2.title}</li>
                                    <foreach name="vo2['children']" item="vo3">
                                        <li><a href="{:U($vo3['url'],'addon='.$vo3['addon'])}" data-id="{$vo3.id}">{$vo3.title}</a></li>
                                    </foreach>
                                </foreach>
                            </ul>
                        </li>
                    </foreach>
                </ul>
            </div>
            <!-- /主导航菜单 -->
        </div>
    </header>
</block>
<block name="body_main">
    <div class="grid-container">
        <div class="ui-tabs ui-widget-content ui-corner-all">
            <div id="switch-header" title="点击隐藏或显示头部"><i class="fa fa-toggle-up"></i></div>
            <ul id="tab-main" class="ui-tabs-nav ui-widget-header ui-helper-reset ui-helper-clearfix ui-corner-all"></ul>
            <div class="ui-tabs-panel ui-widget-content ui-corner-bottom"><iframe id="ifrm_main" name="ifrm_main" frameborder="0" scrolling="yes" style="width: 100%; height: 367px;" src="/index.php/XWAM/Home/index/addon/POrgSystem.html" onload="mditab.fn_iframe_loaded(this)"></iframe></div>
        </div>
    </div>
    <!-- 全局变量 -->
    <span id="config-data" style="display:none;">"home_url":"{:C('VARCONF.HOME_URL')}"</span>
    <!-- /全局变量 -->
</block>
<block name="body_foot_script">
    <script type="text/javascript">
        var mditab = MdiTab.newInstance();
        // 实例化弹窗控件 2015-11-10 SoChishun Added.
        var idialog = IFrameDialog.newInstance();
        window.config = $.parseJSON('{' + $('#config-data').text() + '}');
        // 页面入口 2014-6-11 by sutroon
        $(function () {
            // 页面入口
            ui_init_index();
        });
    </script>
</block>